import { TOKEY_SESSION_KEY } from "@/constant"
import Cookies from "js-cookie";
/**
 * 存储token
 */
export function setToken(value){
    Cookies.set(TOKEY_SESSION_KEY, value)
    // sessionStorage.setItem(TOKEY_SESSION_KEY, value)
}
/**
 * 获取token
 */
export function getToken(){
    return Cookies.get(TOKEY_SESSION_KEY)
    // return sessionStorage.getItem(TOKEY_SESSION_KEY)
}
/* 获取token
*/
export function removeToken(){
   return Cookies.remove(TOKEY_SESSION_KEY)
   // return sessionStorage.getItem(TOKEY_SESSION_KEY)
}